import EmptyLayout from "@/components/EmptyLayout";
export default [
    {
        path: "documents",
        // 嵌套的路由，也必须有component，并且里面包含<router-view/>元素
        component: EmptyLayout,
        children: [
            {
                path: "",
                name: "文档总览",
                component: (resolve) => require(["@/components/documents/Index"], resolve)
            },
            {
                path: "upload",
                name: "上传文档",
                component: (resolve) => require(["@/components/documents/Upload"], resolve)
            }
        ]
    }
];